-- GENERATED SPELL FOR [Void Sentinel] --


function spell0_25772(pUnit, Event) --@Shadow Pulse,Self--
pUnit:FullCastSpellOnTarget(46087,pUnit)
pUnit:RegisterEvent('Sorts_25772', 651, 1)
end

function spell1_25772(pUnit, Event) --@Void Blast,n/a--
pUnit:FullCastSpellOnTarget(46161,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25772', 11500, 1)
end

function Sorts_25772(pUnit, Event)
local choix_sorts_25772 = math.random(0, 1)
if choix_sorts_25772 == 0 then
pUnit:RegisterEvent('spell0_25772', 1, 1)
end
if choix_sorts_25772 == 1 then
pUnit:RegisterEvent('spell1_25772', 1, 1)
end
end

function mob25772_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25772', math.random(1500, 3000), 1)
end

function mob25772_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25772_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25772_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25772, 1, 'mob25772_Action')
RegisterUnitEvent(25772, 2, 'mob25772_Leave')
RegisterUnitEvent(25772, 3, 'mob25772_Kill')
RegisterUnitEvent(25772, 4, 'mob25772_Die')
